package com.bootdo.market.dao;

import com.bootdo.market.domain.ProductArticleDO;
import com.bootdo.market.domain.ProductCatalogDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author jinse
 * @email market@jinse.com
 * @date 2019-07-09 14:41:39
 */
@Mapper
public interface ProductCatalogDao {

    ProductCatalogDO get(Integer id);

    List<ProductCatalogDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(ProductCatalogDO productCatalog);

    int update(ProductCatalogDO productCatalog);

    int remove(Integer id);

    int batchRemove(Integer[] ids);

    List<ProductArticleDO> catalogArticleList(Map<String, Object> map);

    int catalogArticleListCount(Map<String, Object> map);
}
